package com.emm.yixun.openapi.hander;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.emm.yixun.openapi.dto.base.BaseRequestDTO;
import com.emm.yixun.openapi.dto.base.BaseResponseDTO;
import com.emm.yixun.openapi.hander.base.CommonAbstractHander;
import com.emm.yixun.openapi.vo.CustTagReqVo;
import com.emm.yixun.common.app.CustTagReqDto;
import com.emm.yixun.common.app.TagListResDto;
import com.emm.yixun.customer.service.TagServiceFacade;

/**
 * 查询客户标签类型
 * 
 * @author jzliu
 *
 */
@Service("getTagTypeListHander")
public class GetTagTypeListHander extends CommonAbstractHander{
	
	@Autowired
	private TagServiceFacade tagServiceFacade;
	
	@SuppressWarnings("rawtypes")
	@Override
	public BaseResponseDTO doBusiness(BaseRequestDTO reqDto) {
		CustTagReqVo req = (CustTagReqVo)reqDto;
		CustTagReqDto reqDto1 = req.getParams();
		BaseResponseDTO<TagListResDto> res = new BaseResponseDTO<TagListResDto>();
		res.setResData(tagServiceFacade.getTagList(reqDto1));
		return res;
	}
	
}
